package com.cv.system.controller.platform.user.vo;

import com.cv.framework.common.validation.Password;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 视频平台 - 用户密码修改 Request VO
 *
 * @author Charles_XDXD
 */
@Schema(description = "视频平台 - 用户忘记密码修改 Request VO")
@Data
public class PlatformUserProfilePasswordReqVO {

    @Schema(description = "旧密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "abc1008611")
    @NotEmpty(message = "旧密码不能为空")
    @Password
    private String oldPassword;

    @Schema(description = "新密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "654321")
    @NotEmpty(message = "新密码不能为空")
    @Password
    private String newPassword;

}
